Update mkchanges to deal with Git/Github.
authorRobert Lipe <robertlipe@gpsbabel.org>
Sun, 27 Dec 2015 21:48:45 +0000 (15:48 -0600)
committerRobert Lipe <robertlipe@gpsbabel.org>
Sun, 27 Dec 2015 21:48:45 +0000 (15:48 -0600)
tools/mkchanges

index 13c056ffd45954a4dacfd504a79e09fed4ad7add..db54175fa8741b9cbef4f1f1356c67be5cf537f4 100644 (file)
@@ -1,6 +1,10 @@
-# cvsps -u
+# GitHub version lets it render something prewtty close to HTML. (Still have to manually fix <, >, and other entities...)
+git log --date=short --pretty=format:"<tr>%n  <td class=\"date\">%cd</td>%n  <td>%s %b</td>%n</tr>"
 
-svn log | awk '
+exit 0
+
+# Subversion version.
+git log | awk '
 skip = 0;
 /^r[0-9].*lines?$/ {
   if (count > 0) printf "  </td>\n</tr>\n"
@@ -24,6 +28,7 @@ skip = 0;
 
 exit 0
 
+# CVS version.
 cvsps $* |  awk '
 /^Date:/ { 
        logt = "";